@import './mixin.scss';
@import './btn.scss';
@import './element-ui.scss';
@import './sidebar.scss';
//@import './font-awesome/icon/accessory.svg';
$full-width: 100%;

body {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica, 'Hiragino Sans GB', 'Microsoft Yahei', '微软雅黑', Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  font-family: "Helvetica Neue", "Luxi Sans", "DejaVu Sans", Tahoma, "Hiragino Sans GB", STHeiti, "Microsoft YaHei";
  box-sizing: border-box;
  font-size: 15px;
  overflow: hidden;
}

.el-table,
.el-button {
  /*font-size: 100%;*/
}

.resource-library .file-dialog {
  background: rgba(0, 0, 0, 0.6);

  .el-dialog__body {
    padding: 0 !important;
    margin-top: 62px;

    .el-pagination__editor {
      width: 50px;
      color: #84909c;
    }
  }

  .el-dialog__headerbtn {
    z-index: 99999;
  }

  .head {
    position: fixed;
    top: 16px;
    right: 60px;
    width: 100%;
    text-align: center;

    .el-pagination {
      display: inline-block;
      color: #fff;
    }

    .btn-group {
      float: right;
      position: relative;
      right: 0px;
      top: 6px;
    }
  }

  .el-dialog__header {
    width: 100%;
    background-color: #000;
    color: #fff;
    height: 62px;
    line-height: 62px;
    padding: 0px 20px;
    position: fixed;
    top: 0;

    .el-dialog__title {
      font-weight: normal;
      color: #fff;
    }
  }

  .file-container {
    width: 100%;
    overflow: auto;
    text-align: center;

    .arrow {
      font-size: 46px;
      position: fixed;
      top: 50%;
      opacity: 0.7;
      background-color: rgba(1, 1, 1, 0.5);
      padding: 20px 6px;
      border-radius: 10px;
      z-index: 99;
      cursor: pointer;
    }
  }

  .file-container::-webkit-scrollbar-track-piece {
    background-color: inherit;
  }

  .file-container::-webkit-scrollbar-thumb {
    background-color: white;
    border: 2px solid #3e3e3e;
  }

  .el-dialog__footer {
    width: 100%;
    height: 50px;
    position: fixed;
    bottom: 30px;
    /* left: 50%; */
    text-align: center;
    /* margin-left: -100px; */
    /* background-color: #000; */
    padding: 10px;

    .footer {
      margin-bottom: 20px;
      display: inline-block;
      background-color: rgba(1, 1, 1, 0.8);
      border-radius: 5px;
      padding: 8px 0;
    }

    i {
      width: 67px;
      height: 30px;
      line-height: 30px;
      text-align: center;
      float: left;
    }
  }

  i {
    cursor: pointer;
  }

  i:hover {
    opacity: .7;
  }

}


.modifyMaterial {
  .el-tabs__item {
    display: block;
    padding: 0 28px;
    border: none !important;
  }

  .el-tabs__item.is-active {
    background: rgba(0, 0, 0, .05);
    border-radius: 0px !important;
  }

  .el-tabs__content {
    width: 100%;
    height: 86%;
    float: right;
    display: inline-block;
    position: absolute;
    left: 0px;
    padding-left: 180px;
    padding-right: 80px;
    line-height: 45px;
    overflow: auto;

    input {
      width: 300px;
    }
  }

  .el-dialog__body {
    height: 500px;
    padding: 0px;
  }

  .el-dialog__header {
    padding: 0px 20px 0;
  }

  .el-tabs--border-card {
    height: 100%;
  }

  .el-tabs__header {
    display: inline-block;
    width: 160px;
    height: 100%;
    border-bottom: none;
    margin-right: 20px;
    z-index: 999;
  }

  .el-tabs__active-bar {
    display: none;
  }

  .el-tabs__nav {
    width: 100%;
  }

  .el-tabs__item>span {
    padding: 0 30px 0 30px;
  }
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.my-bg {
  display: inline-block;
  width: 20px;
  margin: 0 5px;
}

.bg {
  line-height: 20px;
  font-family: tahoma, "microsoft yahei", "\5FAE\8F6F\96C5\9ED1" !important;
  margin: 0 16px;
  color: #48576a;
  font-weight: 700;
}

.bg-upload {
  background: url();
  background-size: 20px;
  background-repeat: no-repeat;
  background-position: left center;
}

.bg-download {
  background: url();
  background-size: 20px;
  background-repeat: no-repeat;
  background-position: left center;
}

.bg-newFolder {
  background: url();
  background-size: 20px;
  background-repeat: no-repeat;
  background-position: left center;
}

.bg-delete {
  background: url();
  background-size: 20px;
  background-repeat: no-repeat;
  background-position: left center;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

code {
  background: #eef1f6;
  padding: 10px 10px;
  margin-bottom: 20px;
  display: block;
  line-height: 36px;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//首页我的消息，分组聊天窗口
.groupPop {
  .el-dialog__body {
    padding: 30px 0px;
  }

  .header {
    padding: 0 10px !important;
  }
}

.fade-enter-active,
.fade-leave-active {
  transition: all .2s ease
}

.fade-enter,
.fade-leave-active {
  opacity: 0;
}

//搜索下拉
.arrows {
  .el-input__inner {
    text-align: center;
    color: inherit;
    background-color: transparent;
    border: none;
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
  }
}

//main-container全局样式
.app-container {
  padding: 15px;
  padding-bottom: 0 !important;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  margin-top: 30px;
}

.menu-wrapper {
  background-color: rgba(255, 255, 255, 0.06);
}

.editor-container .CodeMirror {
  height: 100% !important;
}

.text-center {
  text-align: center
}

.head-portrait img {
  border: 0;
  border-radius: 100%;
  width: 30px;
  display: inline-block;
  float: left;
  margin: 0 10px;
}

.head-portrait .cell {
  width: 200px;
  padding: 10px 0;
}

.operating-box {
  padding: 0 5px;
}

.svg-icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
}

.el-form .el-select {
  width: 100%;
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: lleft;
  padding: 0 12px;
  transition: 600ms ease position;
  background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);

  .subtitle {
    /*font-size: 20px;*/
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.publishedTag,
.draftTag,
.deletedTag {
  color: #fff;
  background-color: $panGreen;
  line-height: 1;
  text-align: center;
  margin: 0;
  padding: 8px 12px;
  /*font-size: 14px;*/
  border-radius: 4px;
  position: absolute;
  left: 20px;
  top: 10px;
}

.draftTag {
  background-color: $yellow;
}

.deletedTag {
  background-color: $red;
}

.el-dropdown {
  font-size: 100%;
}

.el-menu {
  border-radius: 0;
}

.sidebar-container .el-menu {
  background-color: #354668 !important;
}

.el-menu--dark {
  background-color: #354669;
}

.el-menu-item,
.el-submenu__title {
  font-size: 100%;
  color: white;
}

.menu-wrapper span {
  margin-left: 30px;
}

.input-label {
  /*font-size: 14px;*/
  color: #48576a;
  line-height: 1;
  padding: 11px 5px 11px 0;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

.download-box {
  text-align: center;
}

.no-marginLeft {
  .el-checkbox {
    margin: 0 20px 15px 0;
  }

  .el-checkbox+.el-checkbox {
    margin-left: 0px;
  }
}

.filter-container {
  /*padding-bottom: 6px;*/
  margin-bottom: 15px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
  }
}


//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}

//refine simplemde
.simplemde-container {

  .editor-toolbar.fullscreen,
  .CodeMirror-fullscreen {
    z-index: 1003;
  }
}

//暂时性解决diolag 问题 https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

/*覆盖默认的样式*/
.el-tag {
  background-color: #EEF1F6;
  border-radius: 10px;
  color: #000;
}

.el-tag--primary {
  color: #fff;
}

.el-card {
  border: none !important;
  -webkit-box-shadow: rgba(132, 144, 156, 0.5) 0px 5px 6px !important;

  -moz-box-shadow: rgba(132, 144, 156, 0.5) 0px 5px 6px !important;

  box-shadow: rgba(132, 144, 156, 0.5) 0px 5px 6px !important;
}

.el-upload.el-upload--picture-card {
  width: 110px !important;
  height: 110px !important;
}

.el-upload--picture-card i {
  margin-top: 19px;
  position: absolute;
  margin-left: -14px;
}

.el-tag--primary {
  color: #fff !important;
  background-color: #20a0ff !important;
}

//github-corner
.github-corner:hover .octo-arm {
  animation: octocat-wave 560ms ease-in-out
}

.el-loading-mask {
  background-color: rgba(255, 255, 255, .1) !important;
}

@keyframes octocat-wave {

  0%,
  100% {
    transform: rotate(0)
  }

  20%,
  60% {
    transform: rotate(-25deg)
  }

  40%,
  80% {
    transform: rotate(10deg)
  }
}

@media (max-width:500px) {
  .el-tag--primary .github-corner:hover .octo-arm {
    animation: none
  }

  .github-corner .octo-arm {
    animation: octocat-wave 560ms ease-in-out
  }
}
